export default (value, number) => {
  if (value == undefined) {
    return "";
  }
  if (value.length > number) {
    return value.slice(0, number) + "...";
  } else {
    return value;
  }
};
